package com.hhit.bigscreenbackmanage.service.gis;

import com.alibaba.fastjson.JSONObject;
import com.hhit.bigscreenbackmanage.entity.gis.TGisSituation;
import com.hhit.bigscreenbackmanage.vo.gis.GisAqglVO;
import org.springframework.stereotype.Repository;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

import java.util.List;
import java.util.Map;

/**
 * @author zhl
 */
public interface TGisSituationService {
    int deleteByPrimaryKey(Integer id);

    int insert(TGisSituation record);

    int insertSelective(TGisSituation record);

    TGisSituation selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TGisSituation record);

    int updateByPrimaryKey(TGisSituation record);

    /**
     * 根据条件查询
     * @param jsonObject
     * @return
     */
    Map<String, Object> queryTGisFileData(JSONObject jsonObject);

    Map<String,Object> insertFromExcel(MultipartFile[] file, String cityName, String propName) throws Exception;


    Map<String,Object> insertFromExcelDfm(MultipartFile[] file, String cityName, String propName) throws Exception;

    /**
     * 查询是所有数据
     * @param jsonObject
     * @return  返回树结构
     */
    List<GisAqglVO> getTGisDataByds(JSONObject jsonObject);

    /**
     * 查询特高压所有数据
     * @param jsonObject
     * @return  返回树结构
     */
    List<GisAqglVO> getTGisDataByTgy(JSONObject jsonObject);
}
